#ifndef DWGSTAR_H
#define DWGSTAR_H

#include <QPoint>
#include "dwgobject.h"
#include <QObject>

class DwgStar : public DwgObject
{
    Q_OBJECT
public:
    //DwgStar();
    explicit DwgStar(QObject *parent = nullptr);
    // DwgObject interface
public:
    void Draw(QPainter *painter) override;
    void SetData(QPointF pt1, QPointF pt2) override;
    void Select(QPointF pt);

private:
    QPointF mCenter;   // 五角星中心坐标
    qreal mRadius;   // 外接圆半径
};

#endif // DWGSTAR_H
